package com.cash.loan.modular.cash.transfer;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 更新产品时数据
 *
 * @author Administrator
 * @Date 2018-07-12 11:52
 */
public class UpdateProductDto extends NewProductDto {

    @NotEmpty(message = "产品id不能为空")
    private Long id;

    public UpdateProductDto() {
        super();
    }

    public UpdateProductDto(Long id) {
        super();
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return id+super.toString();
    }
}
